import 'package:flutter/material.dart';
import 'package:jiaju_flutter/widgets/info/info_widget.dart';

final infoList = [
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs9.sinaimg.cn%2Fbmiddle%2F436277f8ga8458f989968%26690&refer=http%3A%2F%2Fs9.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=c8479d1c51f6103089e93b8794ad9739",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs9.sinaimg.cn%2Fbmiddle%2F436277f8ga8458f989968%26690&refer=http%3A%2F%2Fs9.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=c8479d1c51f6103089e93b8794ad9739",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs9.sinaimg.cn%2Fbmiddle%2F436277f8ga8458f989968%26690&refer=http%3A%2F%2Fs9.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=c8479d1c51f6103089e93b8794ad9739",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs9.sinaimg.cn%2Fbmiddle%2F436277f8ga8458f989968%26690&refer=http%3A%2F%2Fs9.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=c8479d1c51f6103089e93b8794ad9739",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs9.sinaimg.cn%2Fbmiddle%2F436277f8ga8458f989968%26690&refer=http%3A%2F%2Fs9.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=c8479d1c51f6103089e93b8794ad9739",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=be671983b1bd48cabb435c0b84380487",
      "2020-10-21 10:22:30"),
  InfoItem(
      "家住回龙观归属的感觉家住回龙观归属的感觉家住回龙观归属的感觉家住回龙观归属的感觉",
      "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fs9.sinaimg.cn%2Fbmiddle%2F436277f8ga8458f989968%26690&refer=http%3A%2F%2Fs9.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627885615&t=c8479d1c51f6103089e93b8794ad9739",
      "2020-10-21 10:22:30"),
];

class InfoPage extends StatefulWidget {
  InfoPage({Key key}) : super(key: key);

  @override
  _InfoPageState createState() => _InfoPageState();
}

class _InfoPageState extends State<InfoPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("资讯"),
      ),
      body: Container(
        child: SingleChildScrollView(
          child: InfoWidget(
            infoList,
          ),
        ),
      ),
    );
  }
}
